<?php
require '~cache.php';
require 'conf.php';

$template='template';
$handle=array('.php','_action.php');

// handle
$r='';
$conf=array_diff_key($conf,array_flip(array($template)));
foreach ($handle as $suffix) {
	$file=$template.$suffix;
	if (!file_exists($file)) continue;
	foreach ($conf as $k => $v){
		$object=$k.$suffix;
		if (copy($file,$object)){
			$r.=$object."\t\t\t\t\t create success \n";
		}else {
			$r.=$object."\t\t\t X \t create false \n";
		}
	}
}

MyEcho($r);
echo GetLink(dirname($_SERVER['PHP_SELF']),'点击返回');